<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">

    <title>Nuvo Document System</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script>
	function formCheck(){
		if( loginform.id.value.length == 0 ){
			alert('IDを入力して下さい.');
			loginform.id.focus();
			return false;
		}
		if( loginform.password.value.length == 0 ){
			alert('パスワードを入力して下さい.');
			loginform.password.focus();
			return false;
		}
	}
	</script>
  </head>
<link href="css/style.css" rel="stylesheet" type="text/css">
  <body>

    <form name="loginform" action="<s:url value="/member/memberLogin.action"/>" method="post" onsubmit="return formCheck();">
<table width="60%" cellpadding="3" cellspacing="3" align=center class="nobd">
<tr>
		<td height="150">
		</td>
	</tr>
	<tr>
		<td height="30" align="center" class="menu"><h1>Nuvo Document System</h1>
		</td>
	<tr>
	<tr>
		<td align="center" class="menu">
			<h3>::ログイン::</h3>
		</td>
	<tr>
	<tr>
		<td>
		<table align="center" cellpadding="3" cellspacing="3" class="table01">
	<tr>
		<td class="cont" >
			ID:
		</td>
		<td class="cont" >
			<input name="member.id" id="id" style="width: 150"/>
		</td>
	</tr>
	<tr>
		<td class="cont" >
			PASS:
		</td>
		<td class="cont" >
			<input type="password" name="member.password" id="password" style="width: 150"/>
		</td>
	</tr>
	<tr>
		<td colspan="2" align="center">
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="ログイン" >&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="button" value="社員登録" onClick="javascript:location.href='<s:url value="/member/memberJoinForm.action"/>';">
		<font color="red"><b>${fieldErrors.loginmsg}</b></font>
		</td>
	</tr>
</table>

</td>
</tr>
</table>
</form>
  </body>
</html>
